package 集合.day2.demo1;

public class Test2 {
    public static void main(String[] args) {
        A<Integer> a1=new A<>(111);
        a1.<Integer>show(111);

        A<String> a2=new A<>("bbb");
        //a1=a2;错误
        A<Integer> a3=new A<>(111);
        a3=a1;

        A a4=new A("hello");
        //a4=a1;
        a1=a4;
        System.out.println(a1.t);
    }
}
